package com.zx.product.services.Impl;

import com.zx.product.entity.Product;
import com.zx.product.services.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
@Slf4j
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProductById(Long productId) {
        Product product = new Product();
        product.setId(productId);
        product.setNum(2);
        product.setPrice(new BigDecimal(100));
        product.setProductName("测试商品");
        return product;
    }
}
